package com.eipp.android.redlonjohnson;

import android.os.Bundle;
import android.view.ViewGroup.LayoutParams;
import android.widget.TableLayout;
import android.widget.TableRow;
import android.widget.TextView;
import android.app.Activity;
import android.graphics.Color;


public class Table extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_table);
		System.out.println("--------Layout set--------");
		TableLayout tv=(TableLayout) findViewById(R.id.table1);
		tv.removeAllViewsInLayout();
		
		System.out.println("--------table set--------");
		TableRow tr1=new TableRow(Table.this);
		tr1.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));
        tr1.setPadding(0, 0, 0, 2);
        System.out.println("--------row set--------");
        TextView tc11=new TextView(Table.this);
         tc11.setText("Karthi");        
         tc11.setTextAppearance(getBaseContext(), R.style.HeaderText);
        
         tr1.addView(tc11);
         System.out.println("--------col set--------");
         tv.addView(tr1);
		
		
	}

	
	

}
